<!DOCTYPE html>
<html lang="zh_cn">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Vue 指令体验-v-html</title>
  <link rel="icon" href="D:\A~shcool_study\vue_gittee\bitbug_favicon.ico" type="image/x-icon">
  <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
</head>

<body>
  <div id="app">
    <div v-html="msg"></div>
  </div>

  <script>
    const app = new Vue({
      el: '#app',
      data: {
        msg: `<a href = "http://www.baidu.com">百度</a> `,
      }
    })
  </script>
</body>

</html>